#ifndef _SERVERSESSIONMGR_H_
#define _SERVERSESSIONMGR_H_

#include "Net.h"
#include "PacketHandler.h"

namespace car
{
	class Server;

	class ServerSessionMgr
	{
	public:
		ServerSessionMgr(void);
		ServerSessionMgr( Server * server );
		~ServerSessionMgr(void);

		void	setConnection( const ReliableConnection & connection )	{ mConnection = connection; }
		ReliableConnection & getConnection() { return mConnection; }

		bool	startSession();
		void	stopSession();
		void	update( float deltaTime );

	private:
		Server *	mServer;
		ReliableConnection	mConnection;
	};
};

#endif